package com.qding.park.manager.rest.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.qding.park.common.core.constant.CacheKeyThree;

public class SystemSessionFilter implements Filter{

	private static final Logger _log = LoggerFactory.getLogger(SystemSessionFilter.class);
	
	
	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
		
	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
			throws IOException, ServletException {
		chain.doFilter(request, response);
		
		String userId=(String) request.getAttribute("userId");
		String phone=(String) request.getAttribute("phone");
		String projectId=(String) request.getAttribute("projectId");
		
		String session_key=CacheKeyThree.REST_SESSION_KEY;
		
	}

	@Override
	public void destroy() {
		
	}

}
